#include "include/opencv2/core.hpp"
#include "include/opencv2/imgproc.hpp"
#include "include/opencv2/imgcodecs.hpp"

int main(int argc, char* argv[]) {
    cv::Mat im_mat = cv::imread("test.bmp");
    cv::Mat im_mat2;

    cv::cvtColor(im_mat, im_mat2, cv::COLOR_BGR2GRAY);
    cv::resize(im_mat2, im_mat2, cv::Size(200, 100));
    cv::imwrite("res.bmp", im_mat2);

    return 0;
}